package com.api.core.domain.vo;

import com.alibaba.fastjson2.JSONObject;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.ObjectUtils;

@Getter
@Setter
public class MonitoredGroupVo {
    private Long id;
    private Long pid;
    private String groupType;
    private String groupName;
    private JSONObject groupNameLocales;
    private String strGroupName;
    private String remark;
    private int pageNum;
    private int pageSize;
    private String appLang;

    public void setGroupNameLocales(JSONObject groupNameLocales) {
        this.groupNameLocales = groupNameLocales;
        if(ObjectUtils.isNotEmpty(groupNameLocales))
            this.strGroupName = groupNameLocales.toString();
    }
}
